home *** CD-ROM | disk | FTP | other *** search
/ Champak 119 / (Vol 119) Nov 09 2010.iso / TGKI-109 / Games / crusade_of_cuisine.swf / scripts / frame_8 / DoAction.as
Text File  |  2010-11-09  |  1KB  |  45 lines

  1. function checkSelectButton()
  2. {
  3.    mc2.mv_select.btn_lina.onRelease = function()
  4.    {
  5.       nellySelected = false;
  6.       gotoAndStop("stage_1");
  7.       play();
  8.    };
  9.    mc2.mv_select.btn_lina.onRollOver = function()
  10.    {
  11.       greenbar.gotoAndPlay("greenbar_uncover");
  12.       lina_text.gotoAndPlay("lina_text_uncover");
  13.       mc2.stop();
  14.    };
  15.    mc2.mv_select.btn_lina.onRollOut = function()
  16.    {
  17.       greenbar.gotoAndPlay("greenbar_cover");
  18.       lina_text.gotoAndPlay("lina_text_cover");
  19.       mc2.play();
  20.    };
  21.    mc2.mv_select.btn_nelly.onRelease = function()
  22.    {
  23.       gotoAndStop("stage_1");
  24.       play();
  25.    };
  26.    mc2.mv_select.btn_nelly.onRollOver = function()
  27.    {
  28.       redbar.gotoAndPlay("redbar_uncover");
  29.       nelly_text.gotoAndPlay("nelly_text_uncover");
  30.       mc2.stop();
  31.    };
  32.    mc2.mv_select.btn_nelly.onRollOut = function()
  33.    {
  34.       redbar.gotoAndPlay("redbar_cover");
  35.       nelly_text.gotoAndPlay("nelly_text_cover");
  36.       mc2.play();
  37.    };
  38. }
  39. stop();
  40. var nellySelected = true;
  41. mc2.onEnterFrame = function()
  42. {
  43.    checkSelectButton();
  44. };
  45.